package com.rul.mars.user.service;

import com.rul.mars.mbg.domain.ResourceParam;
import com.rul.mars.mbg.model.Resource;

import java.util.List;
import java.util.Map;

/**
 * 资源服务
 *
 * @author RuL
 */
public interface ResourceService {
    int create(ResourceParam param);

    int update(Resource resource);

    Resource getItem(Long id);

    int delete(Long id);

    List<Resource> list(String nameKeyword, String urlKeyword, Integer pageSize, Integer pageNum);

    List<Resource> listAll();

    Map<String, List<String>> initResourceRolesMap();

}
